package com.ybkj.daijia.server.service.impl;

import com.ybkj.daijia.server.mapper.IntroduceRecordMapper;
import com.ybkj.daijia.server.model.IntroduceRecord;
import com.ybkj.daijia.server.service.IntroduceRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DefaultIntroduceRecord implements IntroduceRecordService {

    @Autowired
    private IntroduceRecordMapper introduceRecordMapper;

    @Override
    public Integer insertRecord(IntroduceRecord introduceRecord) {
        return introduceRecordMapper.insertRecord(introduceRecord);
    }

    @Override
    public Integer countByPhone(IntroduceRecord introduceRecord) {
        return introduceRecordMapper.countByPhone(introduceRecord);
    }
}
